﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;
using YiSha.Enums;

namespace YiSha.Util.Model
{
    /// <summary>
    /// 返回数据
    /// </summary>
    [Serializable]
    [DataContract]
    public class TData : RespResult
    {
      
    }
    /// <summary>
    /// 返回数据
    /// </summary>
    /// <typeparam name="T"></typeparam>
    [Serializable]
    [DataContract]
    public class TData<T> : RespResult
    {
        /// <summary>
        /// 列表的记录数
        /// </summary>
        [DataMember]
        [JsonProperty(PropertyName = "total")]
        public int Total { get; set; }

        /// <summary>
        /// 数据
        /// </summary>
        [DataMember]
        [JsonProperty(PropertyName = "data")]
        public T Data { get; set; }
    }
}
